const mongoose = require("mongoose");

// 定义骨架
const findRoomsSchema = mongoose.Schema({
  type: String,
  price: Number,
  release_person: String,
  release_time: String,
  describe: String,
  roomform: String,
  ways: String,
  time: String,
  route: String,
  inform: Array,
  imgUrl: Array,
});

// 创建模型
const findRoomsModel = mongoose.model("findrooms", findRoomsSchema);

module.exports = findRoomsModel;
